package web

import org.junit.runner._
import org.scalatest.junit.JUnitRunner
import play.api.test.Helpers._
import play.api.test._
import play.test.WithApplication

/**
 * Add your spec here.
 * You can mock out a whole application including requests, plugins etc.
 * For more information, consult the wiki.
 */
@RunWith(classOf[JUnitRunner])
class Application extends BaseSpec {
  new WithApplication{
    val v=route(FakeRequest(POST, "/user/login").withFormUrlEncodedBody(("phoneNum"-> "18200121306"),("validationCode"->"12345"))).get
//      val article=getList(v)
    val respone=contentAsString(v)(timeout)
    println(respone)
//      checkList(article,"createTime","id","isEffect","content","title","updateTime","group")
//      val phoneCode=get(route(FakeRequest(GET, "/system/phoneCode?phone=15608193987")).get)
//      println(phoneCode)
//      val velify=contentAsBytes(route(FakeRequest(GET, "/system/velify")).get)(timeout)
//      assert(velify.length >1000)
    }
}
